﻿using System;

namespace TextEditor
{
    
    /// <summary>
    /// 逻辑删除----修改痕迹
    /// </summary>
    public class A_LogicDelete : A_Action
    {
        public override string ActionName()
        {
            return "logicdelete";
        }

        public override int CheckState()
        {
            return (base.myOwnerDocument.Info.LogicDelete ? 1 : 0);
        }

        public override bool Execute()
        {
            base.myOwnerDocument.Info.LogicDelete = base.Param1 == "1";
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

